<nz-table #basicTable nzSize="small" 
          [nzFrontPagination]="isFrontPagination"
          [nzData]="monitorPage.data" [nzTotal]="monitorPage.total"
          [(nzPageIndex)]="monitorPage.pageIndex" (nzPageIndexChange)="refreshData()" 
          [(nzPageSize)]="monitorPage.pageSize" (nzPageSizeChange)="refreshData(true)">
  <thead>
    <tr>
      <th>项目名称</th>
      <th>威胁资产</th>
      <th>资产类型</th>
      <th>威胁编号</th>
      <th>发布时间</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>
        <a>{{data.application.name}}</a>
      </td>
      <td>
        <a>{{data.targetAssets[0].name}}</a>
      </td>
      <td>
        <span [ngSwitch]="data.assetType">
          <p *ngSwitchCase="'jar'">
            第三方库
          </p>
          <p *ngSwitchCase="'container'">
            容器
          </p>
        </span>
      </td>
      <td>
        <a class="text-danger">{{data.cveInfo.name}}</a>
      </td>
      <td>
        <span>{{ data?.foundTime | date: 'yyyy-MM-dd HH:mm' }}</span>
      </td>
      <td>
        <a>确认</a>
      </td>
    </tr>
  </tbody>
</nz-table>
